package cn.demo.service1.controller;

import cn.demo.service1.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: liujiahao
 * @Description:
 */
@RestController
public class Service3Controller {


    @GetMapping("pro")
    public User pro(){
        User user=new User();
        user.setId(1);
        user.setName("ljh");
        //System.out.println(mapper.findTest());
        return user;
    }

    public String error() {
        return "error";
    }

}
